/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Server.BUS;

import Server.DAO.DatabaseInfoDAO;
import Server.DTO.DataBaseInfo;

import javax.xml.parsers.ParserConfigurationException;

/**
 *
 * @author Trung
 */
public class DatabaseInfoBUS {
    private DatabaseInfoDAO optionDAO = new DatabaseInfoDAO();
    
    ///Read config file
    public DataBaseInfo readConfigFile(String path){
        return optionDAO.readConfigFile(path);
    }
    
    ///Save config
    public void saveConfig(DataBaseInfo config, String path) throws ParserConfigurationException{
        optionDAO.writeConfig(config, path);
    }
}
